package com.example.springlogbacksample1;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RequestMapping
@RestController
public class CarController {

    @RequestMapping(value = "hello",method = {RequestMethod.GET})
    public String hello(){
        log.info("hello-----------------------------------------------");
        return "哈哈";
    }
}
